<?php
class UserHasLoginAction extends FrontendAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'tpl';
		$this->layout = 'index';
	}

	public function execute()
	{
		if(!empty($this->data['user']))
		{
			
		}
		$referer = C('LtCookie')->getCookie('referer_url');
		if(!empty($referer) && strpos(strtolower($referer),'user-login')===false && strpos(strtolower($referer),'user-haslogin')===false)
		{
			$this->data['redirect_url']	= $referer;
		}
		else
		{
			$this->data['redirect_url']	= C('LtUrl')->generate('User','Index');
		}
		$this->data['seo']['title']	= '登录成功';
	}
}
